.header {
    position: relative;
    z-index: 30;
    padding-bottom: 24px;
    padding-top: 24px;
}
.header .hide-desktop {
    display: none;
}
body.open-header {
    overflow: hidden;
}
body.open-header .header {
    /*padding-right: 15px;*/
    /*margin-right: -15px;*/
}
.header .header__container {
    position: relative;
    display: flex;
    align-items: center;
}
.header svg {
    transition: fill 0.2s;
}
/*Dark*/
.header--dark {
    background: var(--color-head-bg);
}
.header--dark .header__link,
.header--dark svg{
    color: var(--color-text-grey);
    fill: var(--color-text-grey);
}
.header--dark .header__radio--item {
    color: var(--color-header-main);
}
.header--dark .header__link:hover,
.header--dark .header__link:hover svg,
.header--dark .header__link.active,
.header--dark .header__link.active svg{
    color: var(--color-white);
    fill: var(--color-white);
}

.header--dark .header__link.active {
    background: var(--color-header-button-active-bg);
}
/*Dark end*/
/*Light*/
.header--light .header__link,
.header--light svg{
    color: var(--color-text-dark-grey);
    fill: var(--color-text-dark-grey);

}
.header--light .header__link:hover,
.header--light .header__link:hover svg,
.header--light .header__link.active,
.header--light .header__link.active svg{
    color: var(--color-header-main);
    fill: var(--color-header-main);
}
.header--light .header__dropdown .icon{
    background: var(--color-white);
}
.header--light .header__burger,
.header--light .header__control,
.header--light .header__dropdown {
    background: #eff2f6;
}
.header--light .header__burger .icon{
    fill: #2d3643;
}
@media only screen and (max-width: 1023px) {
    .header--light .header__dropdown--item,
    .header--light .header--dark .header__radio--item,
    .header--light .header__dropdown--menu .form-label{
        color: var(--color-text-dark-grey);
    }
}
/*Light end*/
.header--btn {
    height: 40px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    outline: none;
    background: var(--color-main);
    display:flex;
    border: none;
}
.header--btn:hover, .header--btn:focus {
    background: var(--color-main-hover);
    color: var(--color-white);
}
.header--btn svg {
    margin-right: 5px;
}
@media only screen and (max-width: 767px) {
    .header {
        padding-top: 24px;
        padding-bottom: 21px;
    }
}
.header__wrap {
    display: flex;
    align-items: center;
    margin-right: auto;
}
@media only screen and (max-width: 1023px) {
    .header--light .header__wrap {
        background: var(--color-white);
    }
    .header__wrap {
        position: fixed;
        top: 85px;
        left: -100%;
        bottom: 0;
        z-index: 15;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 32px 24px;
        background: var(--color-head-bg);
        transition: -webkit-transform 0.3s;
        transition: transform 0.3s;
        transition: transform 0.3s, -webkit-transform 0.3s;
    }
    .header__wrap.visible {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }
    .header .hide-desktop {
        display: flex;
    }
}
.header__logo {
    display: inline-flex;
    width: 128px;
    margin-right: 64px;
}
@media only screen and (max-width: 1259px) {
    .header__logo {
        margin-right: 32px;
    }
}
@media only screen and (max-width: 1023px) {
    .header__logo {
        width: 145px;
        margin-right: 0;
    }
}
.header__logo img {
    width: 100%;
}
.header__navigation {
    display: flex;
}
@media only screen and (max-width: 1023px) {
    .header__navigation {
        display: block;
        margin-bottom: 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.header__link {
    position: relative;
    display: flex;
    align-items: center;
    height: 47px;
    padding: 0 15px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.header__link .header__link--icon {
    margin-right: 10px;
    display: none;
}
@media only screen and (max-width: 1259px) {
    .header__link {
        /*padding: 0 24px;*/
    }
}
@media only screen and (max-width: 1023px) {
    .header__link {
        height: 58px;
        border-radius: 29px;
        padding: 0 25px;
        font-size: 20px;
    }
    .header__link .header__link--icon {
        display: inline;
    }
}
.header__link:not(:last-child) {
    margin-right: 10px;
}
@media only screen and (max-width: 1259px) {
    .header__link:not(:last-child) {
        margin-right: 0;
    }
    .header__menu__right {
        gap: 10px;
    }
}
@media only screen and (max-width: 1023px) {
    .header__link:not(:last-child) {
        margin-bottom: 16px;
    }
}
.header__logout {
    display: none;
}
@media only screen and (max-width: 1023px) {
    .header__logout {
        display: flex;
        align-items: center;
        height: 58px;
        margin-top: auto;
        padding: 0 25px;
        font-size: 20px;
        font-weight: 500;
        color: var(--color-red);
    }
    .header__logout svg {
        margin-right: 10px;
        fill: var(--color-red);
    }
}
.header__close {
    display: none;
}
@media only screen and (max-width: 1023px) {
    .header__close {
        position: absolute;
        /*top: 88px;*/
        right: 15px;
        display: inline-block;
        width: 42px;
        height: 42px;
        background: #495058;
        border-radius: 50%;
        font-size: 0;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
}
.header__close .icon {
    fill: var(--color-white);
}
.header__burger {
    display: none;
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #2d3643;
    border-radius: 50%;
    outline: none!important;
    border: none;
    margin-left: auto;
    font-size: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.header__burger .icon-close {
    display: none;
}
.header__burger.open .icon-close {
    display: inline;
}
.header__burger.open .icon-burger {
    display: none;
}
@media only screen and (max-width: 1023px) {
    .header__burger {
        display: block;
    }
}
@media only screen and (max-width: 767px) {
    .header__burger {
        width: 42px;
        height: 42px;
    }
}
.header__burger .icon {
    fill: var(--color-white);
}
.header__control {
    border-radius: 48px;
    background: #2d3643;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    height: 48px;
    padding: 0px 15px;
    justify-content: center;
    gap: 10px;
}
.header__control .search {
    width: 220px;
}
@media only screen and (max-width: 767px) {
    .header__control .search {
        width: 100%;
    }
}
@media only screen and (max-width: 767px) {
    .header__control .search__input {
        height: 42px;
        padding-right: 48px;
        border-radius: 21px;
    }
}
.header__box {
    margin-right: 14px;
}
@media only screen and (max-width: 767px) {
    .header__box {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 5;
        margin-right: 0;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0.2s, opacity 0.2s;
    }
    .header__box.visible {
        visibility: visible;
        opacity: 1;
    }
}
.header__search-open,
.header__search-close {
    display: none;
    width: 42px;
    height: 42px;
    font-size: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@media only screen and (max-width: 767px) {
    .header__search-open,
    .header__search-close {
        display: block;
    }
}
.header__search-open .icon,
.header__search-close .icon {
    width: 22px;
    height: 22px;
}
.header__search-close {
    position: absolute;
    top: 0;
    right: 4px;
    z-index: 8;
}
.header__search-close .icon {
    fill: var(--color-red);
}
.header__search-open {
    margin-right: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}
.header__search-open .icon {
    fill: var(--color-white);
}
.header .notification {
    position: relative;
    margin-right: 14px;
}
.header__menu__right {
    display: flex;
    align-items: center;
    margin-left: auto;
}
@media only screen and (max-width: 767px) {
    .header .notification {
        position: static;
        margin-right: 12px;
    }
}
.header__avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 7px solid #2c3542;
}
@media only screen and (max-width: 767px) {
    .header__avatar {
        width: 42px;
        height: 42px;
        border-width: 6px;
    }
}
.header__avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 50%;
}
.header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(26, 28, 30, 0.3);
    -webkit-backdrop-filter: blur(6.5px);
    backdrop-filter: blur(6.5px);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}
@media only screen and (max-width: 1023px) {
    .header__overlay.visible {
        visibility: visible;
        opacity: 1;
    }
    .header__menu__right {
        display: none;
    }
}

.header__radio--wrap {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.header__radio--item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}
.header__radio--img {

}
.header__radio__input--wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 108px;
}
.header__radio__input {
    display: none;
}
.header__radio__input--text {
    text-align: right;
    margin-left: 10px;
}
.header__radio__input--text p {
    margin-bottom: 0;
}
.header__radio__checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #EAECEF;
    background: var(--color-white);
}
.header__radio__checkbox svg {
    display: none;
}
.header__radio__input:checked + .header__radio__checkbox {
    background: var(--color-main);
}
.header__radio__input:checked + .header__radio__checkbox svg {
    display: block;
}
.header__dropdown {
    position: relative;
    fill: var(--color-text-grey);
    cursor: pointer;
    white-space: nowrap;
    border-radius: 48px;
    background: #2d3643;
}
.header__dropdown .icon {
    padding: 4px;
    border-radius: 50%;
    background: var(--color-header-main);
    margin-left: 5px;
}
.header__dropdown--icon {
    margin-right: 5px;
    min-width: 24px;
}
.header__dropdown--span {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    display: flex;
}
.header__dropdown--menu {
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--color-white);
    padding: 10px 15px;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    margin: 0;
    z-index: 420;
}
.header__dropdown--menu .form-label{
    color: var(--color-header-main);
}
.header__dropdown:hover .header__dropdown--menu, .header__dropdown--menu.open{
    display: flex;
}
.header__dropdown--item {
    color: var(--color-header-main);
}

@media only screen and (max-width: 1023px) {
    .header__dropdown {
        flex-direction: column;
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .header__dropdown--menu {
        position: relative;
        margin-top: 10px;
        background: transparent;
        box-shadow: none;
        padding-left: 0;
        padding-right: 0;
        border: none;
    }
    .header__dropdown--item,
    .header--dark .header__radio--item,
    .header__dropdown--menu .form-label{
        color: var(--color-white);
    }

}
